function testAddElements(count) {
    var testName = "add elements";
    
    try {
        UIALogger.logStart("Test " + testName + " on " + UIATarget.localTarget().model());
        
        if (isPad()) {
            tapLeftNavigationBarButton();
        }
        
        for (var i = 0; i < count; i++) {
            
            if (isPhone()) {
                tapRightNavigationBarButton();
            } else if (isPad()) {
                tap(UIATarget.localTarget().frontMostApp().mainWindow().popover().navigationBar().rightButton());
            } else {
                UIALogger.logFail("Model " + model + " is not supported.");
            }
            
            UIALogger.logMessage("Added element " + i);
        }
        
        UIALogger.logPass("Test " + testName + " passed on " + UIATarget.localTarget().model());
    } catch(error) {
        UIALogger.logFail("Error in test :" + testName + "\n" + error);
    }
}